package cn.com.project.pattern.l.command;

/**
 * @Desc 客户
 * @Author wangjun
 * @Date 2018-02-06
 */
public class Client {

	public static void main(String[] args) {
		
		Invoker invoker = new Invoker();
		Command addCode = new AddCodeCommand();
		invoker.setCommand(addCode);
		invoker.action();
		
		System.out.println("------------------");
		
		Command changeDesign = new ChangeDesignCommand();
		invoker.setCommand(changeDesign);
		invoker.action();
	}
	
}
